/**      
 * @file		scope.cpp
 * @description		Demonstrates a variables scope.
 *			The declared msg only lives within the if
 *			statement its defined in.
 * @course		CSCI 123 Section 00000
 * @assignment		Sample 4
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
#include <string>
using namespace std;

/**
 * @return zero if the application executes successfully
 */
int main() {
	int temperature = 80;
	if(temperature >= 100) {
		string msg = "Wow scorching day!\n";
	} else if(temperature >= 90) {
		string msg = "It's a hot day!\n";
	} else if(temperature >= 80) {
		string msg = "Not bad!\n";
	} else {
		string msg = "Wonderful weather!\n";		
	}
	//cout << msg << endl; // msg can't be accessed here

	return 0;
}
